package jp.oesf.malfoy.ui;


import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
//import android.widget.TextView;
import android.content.Intent;

public class DammyUi extends Activity {
    /** Called when the activity is first created. */
	String defaultURL="http://www.google.co.jp/";
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.next);

        Intent intent=getIntent();
    	String stringUrl=intent.getStringExtra("stringUrl");
    	if(stringUrl.isEmpty()||stringUrl.equals("http://")){
    		stringUrl=defaultURL;
    	}
		Uri uri=Uri.parse(stringUrl);
		Intent uintent = new Intent(Intent.ACTION_VIEW,uri);
		startActivity(uintent);
		finish();


//    	TextView textView=(TextView)findViewById(R.id.textView1);
//    	textView.setText(stringUrl);
    }

}

